package cn.hotel.service;


import cn.hotel.entity.Room;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

public interface RoomService {
    public Room queryRoomByTypeId(String typeId);
    //获取所有的房间信息
    List<Room> queryAllRoomInfo();
    //分页查询房间信息
    PageInfo<Room> queryList(Integer page , Integer pageSize);
    //添加房间信息
    void insertRoom(Room room);
    //通过房间id查询房间信息
    Room queryRoomInfoByRoomId(int roomId);
    //更新房间信息
    void updateRoomInfo(Room room);
    //删除房间信息
    void deleteRoomByRoomId(int roomId);
}
